package com.qzsoft.system.modules.permission.group.dto;

import com.qzsoft.jeemis.common.utils.TreeNode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.util.List;

/**
 * 用户组信息表(sys_group)表实体类
 *
 * @author sww
 * @since 2020-08-28 09:48:04
 */
@ApiModel(value = "用户组信息表")
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
public class SysGroupDTO extends TreeNode<SysGroupDTO> {
    private static final long serialVersionUID = 597394110870344364L;

    /**
     * id
     */
    @ApiModelProperty(value = "id")
    private String id;


    /**
     * code
     */
    @ApiModelProperty(value = "code")
    private String code;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String name;

    /**
     * 上级ID
     */
    @ApiModelProperty(value = "上级菜单 上级ID")
    private String pid;

    /**
     * 叶子节点 0: 1:有 默认：0
     */
    @ApiModelProperty(value = "叶子节点 0: 1:有 默认：0")
    private Integer hasLeaf;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer orderId;

    /**
     * 0:存在 1:删除 默认：0
     */
    @ApiModelProperty(value = "0:存在 1:删除 默认：0")
    private Integer hasDelete;

    @ApiModelProperty(value = "是否选中")
    private Boolean checked;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "roleList")
    private List<SysGroupRoleDTO> roleList;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;
//    /**
//     *默认角色id
//     */
//    @ApiModelProperty(value = "roleId")
//    private String roleId;
//    /**
//     *默认角色名称
//     */
//    @ApiModelProperty(value = "roleName")
//    private String roleName;
}
